import { ref } from 'vue'

export function usePageSearch(): [any, (e: any) => void, (e: any) => void] {
  const pageContentRef = ref()
  const handleReset = () => {
    pageContentRef.value.getPageData()
  }
  const handleSearch = (e: any) => {
    pageContentRef.value.getPageData({ ...e })
  }
  return [pageContentRef, handleReset, handleSearch]
}
